//
//  IMMessageManager.h
//  TQY
//
//  Created by 甘世清 on 2024/10/28.
//

#import <Foundation/Foundation.h>
#import "BaseMessageTableViewCell.h"
#import "MessageTopView.h"
NS_ASSUME_NONNULL_BEGIN

@interface IMMessageManager : NSObject


+(BaseMessageTableViewCell*)SQ_createMessageCellForMessageModel:(IMMessageModel *)messageModel  array:(NSMutableArray*)array
                                                          index:(NSInteger)index
                                                                                        tableview:(UITableView *)tableview;

/// 获取cell高度
/// - Parameters:
///   - messageModel: 聊天模型
///   - indexPath: indexPath description
///   - tableview: tableview description
+(CGFloat)SQ_getCellHeightMessageModel:(IMMessageModel *)messageModel
                             indexPath:(NSIndexPath*)indexPath
                             tableview:(UITableView *)tableview;


/// 顶部显示聊天内容
/// - Parameter model: 聊天数据
+(void)SQ_showMessage:(IMMessageModel*)model;

@end

NS_ASSUME_NONNULL_END
